package com.antdesignbackend.backend.mapper;

import com.antdesignbackend.backend.entity.UserRoles;
import com.antdesignbackend.backend.entity.entityVo.AppletUserRoleVo;
import com.antdesignbackend.backend.entity.entityVo.UserRoleVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserRolesMapper extends BaseMapper<UserRoles> {
    List<UserRoleVo> selectUserRoleList(@Param(Constants.WRAPPER) QueryWrapper<UserRoleVo> queryWrapper, Page<UserRoleVo> page);

    Integer count(@Param(Constants.WRAPPER) QueryWrapper<UserRoleVo> queryWrapper);

    AppletUserRoleVo getAppletUserRoleVo(@Param(Constants.WRAPPER) QueryWrapper<AppletUserRoleVo> queryWrapper);
}
